# try + finally

try:
    file = open("1.txt", "w")
    str1 = file.read()

finally:
    file.close()

